home *** CD-ROM | disk | FTP | other *** search
- Path: dispatch.news.demon.net!demon!polo!john
- From: john@polo.demon.co.uk (John Winters)
- Newsgroups: comp.unix.questions,comp.lang.c
- Subject: Re: Bold ASCII
- Date: Mon, 18 Mar 1996 18:35:36 GMT
- Organization: Wallingford
- Message-ID: <DoH7nD.JFn@polo.demon.co.uk>
- References: <4i7cpj$hqa@nexen.nexen.com> <4ih7l2$ds@zeus.tcp.co.uk>
- X-NNTP-Posting-Host: polo.demon.co.uk
-
- In article <4ih7l2$ds@zeus.tcp.co.uk>,
- Michael Tendler <tendler@tcp.co.uk> wrote:
- >mdoar@acton.timeplex.com (Matthew B. Doar) wrote:
- >>Anyone know how to get bold strings of text
- >>from a program (termcap related?)
- >>
- >>e.g.
- >>
- >>printf("\012 This is in bold \013\n");
- >>
- >>where \012 and \013 are whatever the magic ascii values
- >>are to turn on and off bold.
- >>
- >>~Matt
- >
- >I thought you'd just set whatever colour you wanted like this:
- >
- >----cut-----------
- > _textcolor(WHITE); /* Change from grey to white text */
- > printf("This is highlighted..."); /* Print string to screen */
- > _textcolor(GRAY); /* Revert back to dullish grey */
- >----cut-----------
- >
- >I pretty sure you have to include conio.h at the top of your program too.
- >
-
- This *is* a troll isn't it?
-
- John
-
- --
- John Winters. Wallingford, Oxon, England.
-